Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Added HSTS header support into ssl vhost. #193

Closed
wants to merge 1 commit into from
Closed

Feature: Added HSTS header support into ssl vhost. #193

wants to merge 1 commit into from

Conversation

actown
Copy link

@actown actown commented Dec 9, 2013

In nginx::vhost I have added $header_hsts. This option, when defined
will set "add_header Strict-Transport-Security "${header_hsts}";".

There is also some trailing whitespace that I have cleaned up.

Comments and suggestions welcome.

In nginx::vhost I have added $header_hsts. This option, when defined
will set "add_header Strict-Transport-Security "${header_hsts}";".

There is also some trailing whitespace that I have cleaned up.
@3flex
Copy link
Contributor

3flex commented Dec 18, 2013

It might be better to have a generic header parameter to which any header could be added (perhaps using a hash), instead of adding specific parameters for every HTTP header.

@3flex
Copy link
Contributor

3flex commented Dec 30, 2013

Hi @actown, the generic header parameter I suggested was added in #208, and the example in the PR description matches your use case.

I'd suggest closing this in favor of that solution. I'm aware of this nginx ticket: http://trac.nginx.org/nginx/ticket/289. Perhaps if/when this is implemented in nginx a new PR could be opened on this module to take advantage of it.

@actown
Copy link
Author

actown commented Dec 31, 2013

Awesome, just trying to drive adoption of HSTS which is why I went this route. Thanks for pointing out the nginx ticket as it brings up a few good points about HSTS in nginx. Will close for now.

@actown actown closed this Dec 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants